package cn.lbl.face.sg;

/*

 3,3,"ABC","ABC"
 [3,3]

 3,1,"ABC","DDD"
 [0,2]


 */
public class Solution {
    public  class Interval {
        int start;
        int end;
    }

    public   Interval solve(int n, int k, String str1, String str2) {
        int count = 0;
        Interval interval = new Interval();
        for (int i = 0; i < n; i++) {
            if (str1.charAt(i) == str2.charAt(i)) {
                count++;
            }
            if (count == k) {
                interval.start = k;
                interval.end = k;
            }
        }
        return interval;
    }


}
